package com.heihei.itextdemo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 专业
 * </p>
 *
 * @author duanhengfei
 * @since 2020-12-04
 */
@Data
@TableName("t_major")
@ApiModel(value = "专业", description = "专业")
public class MajorEntity extends Model<MajorEntity> {

    /**
     * 主键id
     */
    @TableId(value = "ID", type = IdType.INPUT)
    @ApiModelProperty(value = "主键id")
    private String id;

    /**
     * 专业名
     */
    @ApiModelProperty(value = "专业名")
    private String name;

    /**
     * 创建日期
     */
    @ApiModelProperty(value = "创建日期")
    private Date createTime;

    /**
     * 修改日期
     */
    @ApiModelProperty(value = "修改日期")
    private Date updateTime;

    /**
     * 班级列表
     */
    @ApiModelProperty(value = "班级列表")
    @TableField(exist = false)
    private List<ClassEntity> classList;

    //用于统计专业下的学生总数
    @TableField(exist = false)
    private Integer humanCount;

}
